<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:composition template="../templates/template.xhtml">
			<ui:define name="corpo">
					<h:form id="form" acceptcharset="UTF-8">
						<input type="hidden" value="&#153;" name="bugIE" />
						<p:panel header="Cadastrar Funcionário">
							<p:messages id="messages" showDetail="false" />  
	        				<h:panelGrid columns="2" columnClasses="label, value" styleClass="grid">
	        					<h:outputText value="Nome:" />
	        					<p:inputText value="#{funcionarioIncluirMB.funcionario.nome}" label="Nome"/>
	        					
	        					<h:outputText value="Sexo: " />  
						        <p:selectOneRadio value="#{funcionarioIncluirMB.funcionario.sexo}">  
						            <f:selectItem itemLabel="Masculino" itemValue="M" />  
						            <f:selectItem itemLabel="Feminino" itemValue="F" />  
						        </p:selectOneRadio>
	        					
	        					<h:outputText value="Telefone:" />
	        					<p:inputMask value="#{funcionarioIncluirMB.funcionario.telefone}" mask="(99)9999-9999" label="Telefone" style="width: 125px;"/>
	        					
	        					<h:outputText value="E-mail:" />
	        					<p:inputText value="#{funcionarioIncluirMB.funcionario.email}" label="E-mail"/>
	        					
	        					<h:outputText value="Endereço:" />
	        					<p:inputText value="#{funcionarioIncluirMB.funcionario.endereco}" label="Endereço"/>
	        					
	        					<h:outputText value="RG:" />
	        					<p:inputMask value="#{funcionarioIncluirMB.funcionario.rg}" mask="9999999" label="RG" style="width: 100px;"/>
	        					
	        					<h:outputText value="CPF:" />
	        					<p:inputMask value="#{funcionarioIncluirMB.funcionario.cpf}" mask="999.999.999-99" label="CPF" style="width: 130px;" />
	        					
	        					<h:outputText value="Senha:" />
	        					<p:password value="#{funcionarioIncluirMB.funcionario.senha}" label="Senha"/>
	        				</h:panelGrid>
	        				<p:commandButton value="Incluir" action="#{funcionarioIncluirMB.confirmar}" ajax="false" />&nbsp;
						   	<p:commandButton value="Cancelar" action="/pages/home/index.jsf" ajax="false" immediate="true" />
	        			</p:panel>	
					</h:form>
			</ui:define>
	</ui:composition>
</html>